package com.lq.educationsystem.admin.mapper;

import com.lq.educationsystem.admin.entiy.AdminTb;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【admin_tb】的数据库操作Mapper
* @createDate 2024-04-14 16:42:20
* @Entity com.lq.educationsystem.admin.entiy.AdminTb
*/
public interface AdminTbMapper {

    int deleteByPrimaryKey(Long id);

    int insert(AdminTb record);

    int insertSelective(AdminTb record);

    AdminTb selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AdminTb record);

    int updateByPrimaryKey(AdminTb record);

    /**
     * 获取分页数据
     * @param adminInfo 前端传递过来的数据参数
     * @param start         limit起始位置
     * @param pageSize          页面大小 一次截取多少
     * @return
     */
    List<AdminTb> queryListByLike(@Param("adminInfo") AdminTb adminInfo,@Param("start") int start, @Param("pageSize") Integer  pageSize);

    int queryAdminCounts(@Param("adminInfo") AdminTb adminInfo);

    /**
     * 查询单个信息
     * @param adminAccount
     * @return
     */
    AdminTb queryInfoByAccount(@Param("adminAccount") String adminAccount);


    /**
     * 查询管理员信息
     * @param adminId
     * @return
     */
//    AdminTb queryAdminById(int adminId);
}
